/**
 *
 * @User:   winter
 * @Date:   2019-09-10
 * @Time:   17:58
 *
 **/

@font-face {
  font-family: 'iconfont';  /* project id 1405417 */
  src: url('//at.alicdn.com/t/font_1405417_m5fp9gegh6q.eot');
  src: url('//at.alicdn.com/t/font_1405417_m5fp9gegh6q.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_1405417_m5fp9gegh6q.woff2') format('woff2'),
  url('//at.alicdn.com/t/font_1405417_m5fp9gegh6q.woff') format('woff'),
  url('//at.alicdn.com/t/font_1405417_m5fp9gegh6q.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_1405417_m5fp9gegh6q.svg#iconfont') format('svg');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 12px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  .container {
    padding-bottom: .24rem;

    .header {
      width: 100%;
      height: .44rem;
      padding: .09rem .15rem;

      .header-logo {
        width: 1.04rem;
        height: .26rem;
        background-image: url("../img/logo@2x.png");
        background-size: 100% 100%;
        background-repeat: no-repeat;
      }
    }

    .banner {
      width: 3.75rem;
      height: 1.60rem;

      .swiper-container {
        .swiper-wrapper {
          .swiper-slide-1 {
            width: 3.75rem;
            height: 1.6rem;
            background-image: url("../img/drugdiscovery/banner_1@3x.png");
            background-size: 100% 100%;
            background-repeat: no-repeat;
          }

          .button_box {
            width: 100%;
            height: .2rem;
            position: absolute;
            left: 0;
            bottom: .24rem;
            text-align: center;

            button {
              height: 100%;
              width: .55rem;
              vertical-align: top;
              border-radius: .02rem;
              border: 1px solid rgba(189, 9, 39, 1);
              background-color: transparent;
              font-size: .1rem;
              outline: none;
            }

            .active {
              color: white;
              background-color: rgba(189, 9, 39, 1);
            }
          }
        }
      }
    }

    .exhibition {
      height: .72rem;
      padding-top: .3rem;
      padding-bottom: .2rem;
      text-align: center;
      background-color: transparent;

      span {
        display: inline-block;
        vertical-align: top;
        width: .7rem;
        font-size: .16rem;
        font-weight: 500;
        color: var(--color-text-three-title);
        line-height: .22rem;
        position: relative;
        margin-right: .05rem;
      }

      span:after {
        content: "";
        width: .05rem;
        height: .05rem;
        border-radius: 50%;
        background-color: #bd0927;
        position: absolute;
        bottom: .04rem;
        right: -.1rem;
      }
    }

    .host_service_box {
      background: rgba(245, 245, 245, 1);

      .host_service {
        display: flex;
        display: -webkit-flex; /* Safari */

        .left {
          width: 2.14rem;
          height: 2.11rem;
          background-image: url("../img/drugdiscovery/pic-1@3x.png");
          background-repeat: no-repeat;
          background-size: 100% 100%;
        }

        .right {
          flex-grow: 1;

          .items {
            height: 100%;
            width: 100%;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;


            .item {
              width: 1.30rem;
              height: .26rem;
              border-radius: .02rem;
              font-size: .12rem;
              text-align: center;
              line-height: .26rem;
              border: 1px solid var(--color-text-base);
            }

            .active {
              background-color: #BD0927;
              border: 1px solid #BD0927;
              color: white;
            }
          }
        }
      }

      .more {
        padding-top: .2rem;
        padding-bottom: .3rem;
        padding-right: .16rem;
        font-size: .12rem;
        font-weight: 400;
        color: rgba(189, 9, 39, 1);
        text-align: right;
        background: -webkit-linear-gradient(to bottom, #F5F5F5 0%, white 100%); /* Safari 5.1 - 6.0 */
        background: -o-linear-gradient(to bottom, #F5F5F5 0%, white 100%); /* Opera 11.1 - 12.0 */
        background: -moz-linear-gradient(to bottom, #F5F5F5 0%, white 100%); /* Firefox 3.6 - 15 */
        background: linear-gradient(to bottom, #F5F5F5 0%, white 100%);
      }
    }

    .case_box {
      .case {
        padding-left: .15rem;
        padding-right: .15rem;

        .item {
          display: flex;
          display: -webkit-flex;
          margin-bottom: .2rem;

          .img {
            width: 1.65rem;

            img {
              width: 100%;
              height: 100%;
              border: 0;
            }
          }

          .info {
            width: 1.8rem;
            padding-left: .23rem;

            .top {
              font-size: .12rem;
              font-weight: 400;
              margin-top: .24rem;
              line-height: .18rem;
            }

            .bottom {
              margin-top: .18rem;
              font-size: .12rem;
              font-weight: 400;
              color: var(--color-text-base);
            }
          }
        }

        //.item:nth-child(2) {
        //  .info {
        //    padding-left: 0;
        //    padding-right: .23rem;
        //  }
        //}

        .active {
          box-shadow: 0 .02rem .04rem 0 rgba(159, 159, 159, 0.5);

          .info {
            .bottom {
              color: rgba(189, 9, 39, 1);
            }
          }
        }
      }
    }

    .data_box {
      padding: .3rem .15rem;

      .data {
        display: flex;
        display: -webkit-flex;
        flex-wrap: wrap;

        .item {
          flex: 0 0 50%;
          -webkit-flex: 0 0 50%;
          max-width: 50%;
          position: relative;
          height: 1.12rem;

          .number {
            position: absolute;
            top: .09rem;
            right: .09rem;
            width: .20rem;
            height: .18rem;
            font-size: .13rem;
            font-weight: 500;
            color: var(--color-text-one-title);
            line-height: .18rem;
          }

          .img {
            position: absolute;
            top: .21rem;
            left: .16rem;
            width: .23rem;
            height: .22rem;
          }

          .line {
            position: absolute;
            top: .54rem;
            left: .16rem;
            width: .63rem;
            height: .01rem;
            border: 1px solid var(--color-text-one-title);
          }

          .text {
            position: absolute;
            top: .65rem;
            left: .16rem;
            width: 1.2rem;
            font-size: .12rem;
            font-weight: 400;
            line-height: .17rem;
          }
        }

        .item.active {
          background-color: rgba(189, 9, 39, 1);;

          .line {
            border: 1px solid white;
          }

          .text, .number {
            color: white;
          }
        }

        .item[data-id='1'] {
          box-shadow: 0 .02rem .04rem 0 rgba(132, 132, 132, 1);

          .img {
            background-image: url("../img/drugdiscovery/ic-1@3x.png");
            background-repeat: no-repeat;
            background-size: 100% 100%;
          }

        }

        .item[data-id='1'].active {
          .img {
            background-image: url("../img/drugdiscovery/ic-1-1@3x.png");
          }
        }

        .item[data-id='2'] {
          box-shadow: 0 .02rem .04rem 0 rgba(156, 156, 156, 0.5);

          .img {
            background-image: url("../img/drugdiscovery/ic-2@3x.png");
            background-repeat: no-repeat;
            background-size: 100% 100%;
          }
        }

        .item[data-id='2'].active {
          .img {
            background-image: url("../img/drugdiscovery/ic-2-1@3x.png");
          }
        }

        .item[data-id='3'] {
          box-shadow: 0 .02rem .04rem 0 rgba(132, 132, 132, 0.5);

          .img {
            background-image: url("../img/drugdiscovery/ic-3@3x.png");
            background-repeat: no-repeat;
            background-size: 100% 100%;
          }
        }

        .item[data-id='3'].active {
          .img {
            background-image: url("../img/drugdiscovery/ic-3-1@3x.png");
          }
        }

        .item[data-id='4'].active {
          .img {
            background-image: url("../img/drugdiscovery/ic-3-1@3x.png");
          }
        }

        .item[data-id='4'] {
          box-shadow: 0 .02rem .04rem 0 rgba(132, 132, 132, 0.5);

          .img {
            background-image: url("../img/drugdiscovery/ic-4@3x.png");
            background-repeat: no-repeat;
            background-size: 100% 100%;
          }
        }

        .item[data-id='4'].active {
          .img {
            background-image: url("../img/drugdiscovery/ic-4-1@3x.png");
          }
        }
      }
    }

    .summary_box {

      padding: .2rem 0;

      .summary {
        .title {
          text-align: center;
          font-size: .16rem;
          font-weight: 500;
          color: var(--color-text-one-title);
          line-height: .22rem;

          span {
            font-size: .30rem;
            font-weight: 500;
            color: rgba(189, 9, 39, 1);
            line-height: .42rem;
            padding-right: .1rem;
            padding-left: .1rem;
          }
        }

        .items {
          width: 100%;
          background-image: url("../img/drugdiscovery/bg-banner@3x.png");
          background-repeat: no-repeat;
          background-size: 100% 100%;
          padding: .2rem .15rem;
          margin-top: .26rem;

          .item {
            display: flex;
            display: -webkit-flex;
            padding-bottom: .2rem;
            justify-content: center;

            .left_box {
              width: 1.09rem;


              .left {
                display: flex;
                display: -webkit-flex;

                .slash {
                  width: .14rem;
                  color: rgba(189, 9, 39, 1);
                  font-size: .5rem;
                  line-height: .38rem;
                }

                .msg {
                  flex-grow: 1;
                  padding-left: .1rem;

                  .top {
                    width: 100%;
                    height: .16rem;
                    font-size: .11rem;
                    font-weight: 400;
                    color: white;
                    line-height: .16rem;
                  }

                  .bottom {
                    height: .33rem;
                    font-size: .24rem;
                    font-weight: 400;
                    color: white;
                    line-height: .33rem;
                  }
                }
              }
            }

            .right {
              flex-grow: 1;
              flex-basis: 0;
              font-size: .12rem;
              font-weight: 400;
              color: white;
              line-height: .2rem;


            }

            .consult {
              width: .97rem;
              height: .26rem;
              border-radius: .02rem;
              border: .01rem solid white;
              font-size: .12rem;
              font-weight: 400;
              color: white;
              line-height: .26rem;
              background-color: transparent;
              outline: none;
            }

            .consult.active {
              background: rgba(189, 9, 39, 1);
              border: rgba(189,9,39,1);
            }
          }
        }


      }
    }

    .division {
      width: 100%;
      height: .1rem;
      background: rgba(245, 245, 245, 1);
    }

    .copyright_box {
      height: .14rem;
      font-size: .1rem;
      font-weight: 500;
      color: rgba(80, 80, 80, 1);
      line-height: .14rem;
      text-align: center;
      a {
        color: rgba(80, 80, 80, 1);
      }
    }

    .partner_box {
      margin-bottom: .2em;
      .partner {
        &_msg {
          display: flex;
          display: -webkit-flex;
          flex-wrap: wrap;
          justify-content: center;
          align-items: center;
        }

        &-1, &-2, &-3, &-4, &-5, &-6, &-7, &-8 {
          background-size: 100% 100%;
          background-repeat: no-repeat;
          margin-top: .2rem;
        }

        &-1 {
          width: .33rem;
          height: .19rem;
          background-image: url("../img/life/partner-1@3x.png");
          margin-right: .23rem;
        }

        &-2 {
          width: .66rem;
          height: .19rem;
          background-image: url("../img/life/partner-2@3x.png");
          margin-right: .24rem;
        }


        &-3 {
          width: .99rem;
          height: .16rem;
          background-image: url("../img/life/partner-3@3x.png");
          margin-right: .23rem;
        }


        &-4 {
          width: .76rem;
          height: .17rem;
          background-image: url("../img/life/partner-4@3x.png");
        }

        &-5 {
          width: .62rem;
          height: .17rem;
          background-image: url("../img/life/partner-5@3x.png");
          margin-right: .26rem;
        }

        &-6 {
          width: .66rem;
          height: .15rem;
          background-image: url("../img/life/partner-6@3x.png");
          margin-right: .26rem;
        }

        &-7 {
          width: .79rem;
          height: .14rem;
          background-image: url("../img/life/partner-7@3x.png");
          margin-right: .26rem;
        }

        &-8 {
          width: .76rem;
          height: .16rem;
          background-image: url("../img/life/partner-8@3x.png");
        }
      }

    }

  }

  .popup_box {
    .modals {
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      display: none;
      z-index: 1000;
      overflow: auto;
      background-color: rgba(0, 0, 0, .59);

      .modal {
        width: 100vw;
        height: 100vh;
        position: relative;

        &-dialog {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);

          &-top {
            .close_box {
              .close {

              }
            }
          }
        }
      }
    }
  }

  #app_modals {
    .modal {
      &-dialog {
        width: 3.21rem;
        padding-top: .15rem;
        padding-bottom: .15rem;
        background-color: white;
        border-radius: .06rem;
      }

      &-top {
        width: 3.45rem;
        height: 1.67rem;
        margin-left: -.12rem;
        background: linear-gradient(134deg, rgba(189, 9, 39, 1) 0%, rgba(138, 0, 23, 1) 100%);
        box-shadow: 0 .02rem .12rem 0 rgba(135, 8, 29, 1);

        .close {
          &_box {
            padding: .08rem .18rem;
            overflow: hidden;

            .close {
              width: .15rem;
              height: .15rem;
              background-image: url("../img/life/ic-close@3x.png");
              background-repeat: no-repeat;
              background-size: 100% 100%;
              float: right;
            }
          }
        }

        .title {
          font-size: .26rem;
          font-weight: 500;
          color: white;
          padding-left: .37rem;
          line-height: .30rem;
        }

        .msg {
          font-size: .12rem;
          font-weight: 400;
          color: white;
          line-height: .12rem;
          padding-left: .37rem;
          padding-top: .1rem;
        }
      }

      &-middle {
        padding: .2rem .25rem;

        .title {
          font-size: .14rem;
          font-weight: 400;
          overflow: hidden;

          line-height: .16rem;
          padding-bottom: .12rem;

          em {
            color: #BD0927;
            float: left;
            margin-bottom: .05rem;
          }

          span {
            color: var(--color-text-one-title);
            float: left;
            margin-bottom: .05rem;
          }
        }


        .input {
          &_name, &_phone {
            //text-align: center;
            height: .56rem;
            padding-bottom: .2rem;
            position: relative;

            .ic_name {
              position: absolute;
              top: .06rem;
              left: .09rem;
              width: .2rem;
              height: .2rem;
              background-image: url("../img/life/from-ic-name@3x.png");
              background-repeat: no-repeat;
              background-size: 100% 100%;
            }

            .ic_phone {
              position: absolute;
              top: .07rem;
              left: .11rem;
              width: .16rem;
              height: .22rem;
              background-image: url("../img/life/from-ic-phone@3x.png");
              background-repeat: no-repeat;
              background-size: 100% 100%;
            }

            input {
              width: 2.7rem;
              height: .34rem;
              font-size: .14rem;
              background: rgba(255, 255, 255, 1);
              vertical-align: top;
              border: .01rem solid #aaa;
              outline: none;
              box-shadow: 0 .01rem .04rem 0 rgba(106, 106, 106, 0.5);
              -webkit-box-shadow: 0 .01rem .04rem 0 rgba(106, 106, 106, 0.5);
              -moz-box-shadow: 0 .01rem .04rem 0 rgba(106, 106, 106, 0.5);
              padding-left: .41rem;
              line-height: .2rem;
            }

            input::-webkit-input-placeholder { /* WebKit, Blink, Edge */
              color: rgba(160, 160, 160, 1);
            }

            input::-moz-placeholder { /* Mozilla Firefox 19+ */
              color: rgba(160, 160, 160, 1);
            }

            input:-ms-input-placeholder { /* Internet Explorer 10-11 */
              color: rgba(160, 160, 160, 1);
            }

            input::placeholder{
              color: rgba(160, 160, 160, 1);
            }

            input:focus {
              border: .01rem solid #BD0927;
            }
          }
        }

        .button {
          padding-top: .09rem;
          height: .41rem;
          text-align: center;

          button {
            width: .82rem;
            height: .32rem;
            color: white;
            font-size: .20rem;
            font-weight: 500;
            line-height: .28rem;
            background-color: var(--color-text-one-title);
            vertical-align: top;
            border: 0;
            outline: none;
          }
        }
      }
    }
  }

  #submit_modals {
    .modal {
      &-dialog {
        width: 2.78rem;
        padding-top: .37rem;
        padding-bottom: .22rem;
        background-color: white;
        border-radius: .06rem;
      }

      &-top {
        text-align: center;
        height: .76rem;
        padding-bottom: .22rem;

        img {
          width: .54rem;
          height: .54rem;
          vertical-align: top;
        }
      }

      &-middle {
        padding-left: .21rem;
        padding-right: .22rem;

        .title {
          height: .3rem;
          font-size: .16rem;
          font-weight: 500;
          color: var(--color-text-one-title);
          line-height: .22rem;
          text-align: center;
          padding-bottom: .08rem;
        }

        .msg {
          text-align: center;
          height: .64rem;
          font-size: .12rem;
          font-weight: 400;
          color: rgba(119, 119, 119, 1);
          line-height: .17rem;
          padding-bottom: .3rem;
        }

        .button {
          height: .3rem;
          text-align: center;

          button {
            vertical-align: top;
            width: .72rem;
            height: .30rem;
            background: var(--color-text-one-title);
            border-radius: .26rem;
            font-size: .16rem;
            font-weight: 500;
            color: white;
            line-height: .22rem;
            outline: none;
          }
        }
      }

    }
  }

}
